package com.lightman.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lightman.common.utils.PageUtils;
import com.lightman.gulimall.product.entity.CategoryEntity;
import com.lightman.gulimall.product.vo.CatelogTwoVo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author lightman
 * @email 1355208467@qq.com
 * @date 2020-12-23 07:17:14
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);

    /**
     *  找到catelogId的完整路径; [父/子/子/..]
     * @param catelogId
     * @return
     */
    Long[] findCatelogPath(Long catelogId);


    void updateCascade(CategoryEntity category);


    // 查询所有的以及分类
    List<CategoryEntity> getLevelOneCategorys();


    Map<String, List<CatelogTwoVo>> getCatalogJson();

}

